#ifndef SHOPCARTWINDOW_H
#define SHOPCARTWINDOW_H

#include <QWidget>
#include <QListWidget>
#include <QListWidgetItem>
#include <QDebug>

#include "Food.h"
#include "User.h"
#include "CurrentUser.h"
#include "FoodOrderTable.h"
#include "FoodOrder.h"


namespace Ui {
class ShopCartWindow;
}

class ShopCartWindow : public QListWidget
{
    Q_OBJECT

public:
    explicit ShopCartWindow(QWidget *parent = nullptr);
    ~ShopCartWindow();

signals:
    void dataChange();  //通知订单列表数据改变

private:
    Ui::ShopCartWindow *ui;

private slots:
    void replyAddIntoShopCart(Food food);    //响应添加至购物车的槽函数
    void replyShowShopCartWindow(); //显示购物车界面
    void on_settle_btn_clicked();   //结账按钮
};

#endif // SHOPCARTWINDOW_H
